//声明 『构造函数』
class Demo {

	constructor(executor) {

		
		const self = this ;
		// 添加属性
		self.promiseStatus = 'pending';
		self.promiseResult = undefined;

		self[symbolStatus] = 'pending2'
		self[symbolResult] = 'symbolResult'
	}
	getInfo() {
    	return `${this[symbolStatus]}-${this.promiseStatus}`;
  	}

}


const symbolStatus = Symbol("PromiseStatus");
const symbolResult = Symbol("PromiseResult");

var demo = new Demo()

console.log(demo)
for(var i in demo) {
	console.log(i + " : " + demo[i])
}
console.log('-----------------------\n')

console.log(demo['promiseStatus'])
console.log(demo[symbolResult])
